﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LibFriesland_Campina_CRM
{
    public class BizGPSTracking
    {
        #region Thuoc tinh
        public long gps_tracking_numid { get; set; }
        public string by_na { get; set; }
        public double latitude { get; set; }
        public double longitude { get; set; }
        public string datetime_phone_str { get; set; }
        public DateTime datetime_phone { get { return Convert.ToDateTime(Thuvien.myConvertStringToLongDate(datetime_phone_str)); } }
        public DateTime datetime_system { get; set; }
        public string ime { get; set; }
        #endregion

        #region Ham thiet lap
        public BizGPSTracking() { }
        public BizGPSTracking(long pGps_tracking_numid, string pBy_na, double pLatitude, double pLongitude, string pDatetime_phone_str, DateTime pDatetime_system, string pIme)
        {
            gps_tracking_numid = pGps_tracking_numid;
            by_na = pBy_na;
            latitude = pLatitude;
            longitude = pLongitude;
            datetime_phone_str = pDatetime_phone_str;
            datetime_system = pDatetime_system;
            ime = pIme;
        }
        #endregion

        #region Phuong thuc
        //Webservice
        //Them GPSTracking
        public int addGPSTracking()
        {
            return DalGPSTracking.addGPSTracking(this);
        }
        #endregion
    }
}
